/*
 * File Name: ApplicationDto.java
 * Created on: 
 */
package co.edu.uniandes.intercon.core.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Class used to represent the shared applications across the system
 * @author Fabian Gutierrez [fagossa@gmail.com]
 */
public class ApplicationDto extends BaseDto {

	private static final long serialVersionUID = 5241978112505675971L;

	private long id;

	private String name;
	private List<ParamDto> params;
	private String filePath;

	private String host;
	private int port;
	private String fileSize;
	private String implClass;

	public ApplicationDto(long id) {
		this.id = id;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getImplClass() {
		return implClass;
	}

	public void setImplClass(String implClass) {
		this.implClass = implClass;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<ParamDto> getParams() {
		return params;
	}

	public void setParams(List<ParamDto> params) {
		this.params = params;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getFileSize() {
		return fileSize;
	}

	public void setFileSize(String fileSize) {
		this.fileSize = fileSize;
	}

	public void setBaseParams(List<BaseDto> params) {
		setParams(new ArrayList(params));
	}

	public List<BaseDto> getBaseParams() {
		return new ArrayList<BaseDto>(getParams());
	}
}
